package net.csdn.business.common.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wanghang
 * @version 1.0
 * @date 2022/11/1 16:50
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LabelVo implements Serializable {

    /**
     * 标签ID
     */
    private String objectId;

    /**
     * 标签名称
     */
    private String labelName;

    /**
     * 标签颜色
     */
    private String labelColor;

    /**
     * 标签描述
     */
    private String labelDesc;

    /**
     * 来源类型 -1-系统标签 1-组织 2-仓库
     */
    private Integer sourceType;

    /**
     * 组织id/仓库id
     */
    private String sourceId;

    /**
     * 组织/仓库的命名空间
     */
    private String sourcePath;

    /**
     * 根命名空间（组织NS or 项目所属NS）
     */
    private String rootNs;
    private String issueId;

    protected String createdBy;
    protected String lastModifiedBy;
    protected Date createdDate;
    protected Date lastModifiedDate;

}
